import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useSettingStore = defineStore('settingStore', () => {
  //用于折叠状态管理
  let fold = ref(false)
  //刷新状态管理
  let refresh = ref(false)
  function changeFold(): void {
    fold.value = !fold.value
  }
  const changeRefresh = (): void => {
    refresh.value = !refresh.value
  }
  return {
    fold,
    changeFold,
    changeRefresh,
    refresh,
  }
})
